home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / ctype.man < prev    next >
Encoding:
Text File  |  1989-02-27  |  2.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CTYPE                 C Library Procedures                  CTYPE
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      isalpha, isupper, islower, isdigit, isxdigit, isalnum,
  10.      isspace, ispunct, isprint, isgraph, iscntrl, isascii,
  11.      toupper, tolower, toascii - character classification macros
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<ccttyyppee..hh>>
  15.  
  16.      iissaallpphhaa((cc))
  17.  
  18.      .. .. ..
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      These macros classify ASCII-coded integer values by table
  22.      lookup.  Each is a predicate returning nonzero for true,
  23.      zero for false.  _I_s_a_s_c_i_i and _t_o_a_s_c_i_i are defined on all
  24.      integer values; the rest are defined only where _i_s_a_s_c_i_i is
  25.      true and on the single non-ASCII value EOF (see _s_t_d_i_o(3S)).
  26.  
  27.      _i_s_a_l_p_h_a        _c is a letter
  28.  
  29.      _i_s_u_p_p_e_r        _c is an upper case letter
  30.  
  31.      _i_s_l_o_w_e_r        _c is a lower case letter
  32.  
  33.      _i_s_d_i_g_i_t        _c is a digit
  34.  
  35.      _i_s_x_d_i_g_i_t       _c is a hex digit
  36.  
  37.      _i_s_a_l_n_u_m        _c is an alphanumeric character
  38.  
  39.      _i_s_s_p_a_c_e        _c is a space, tab, carriage return, newline,
  40.                     vertical tab, or formfeed
  41.  
  42.      _i_s_p_u_n_c_t        _c is a punctuation character (neither control
  43.                     nor alphanumeric)
  44.  
  45.      _i_s_p_r_i_n_t        _c is a printing character, code 040(8)
  46.                     (space) through 0176 (tilde)
  47.  
  48.      _i_s_g_r_a_p_h        _c is a printing character, similar to _i_s_p_r_i_n_t
  49.                     except false for space.
  50.  
  51.      _i_s_c_n_t_r_l        _c is a delete character (0177) or ordinary
  52.                     control character (less than 040).
  53.  
  54.      _i_s_a_s_c_i_i        _c is an ASCII character, code less than 0200
  55.  
  56.      _t_o_l_o_w_e_r        _c is converted to lower case.  Return value
  57.                     is undefined if not _i_s_u_p_p_e_r(_c).
  58.  
  59.      _t_o_u_p_p_e_r        _c is converted to upper case.  Return value
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 12, 1986                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CTYPE                 C Library Procedures                  CTYPE
  71.  
  72.  
  73.  
  74.                     is undefined if not _i_s_l_o_w_e_r(_c).
  75.  
  76.      _t_o_a_s_c_i_i        _c is converted to be a valid ascii character.
  77.  
  78. SSEEEE AALLSSOO
  79.      ascii(7)
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0               May 12, 1986                          2
  130.  
  131.  
  132.  
  133.